Switch to CSS interpretation of rgb() and rgba() colors
authorOwen W. Taylor <otaylor@fishsoup.net>
Tue, 2 Nov 2010 19:30:44 +0000 (15:30 -0400)
committerOwen W. Taylor <otaylor@fishsoup.net>
Wed, 3 Nov 2010 17:41:45 +0000 (13:41 -0400)
commit5daab5266113a6aadd96fdcf504f3aa19c48fe39
treed0524287a6f25fe1efeff49feb8908317b034b0c
parentfbdcf193ae485cb311b31ed9ab1d69d69701598d
Switch to CSS interpretation of rgb() and rgba() colors

CSS3 defines a somewhat odd syntax for rgba() colors - the rgb values
are integers from 0 to 255 or percentages and the a value is a
float from 0 to 1. To avoid increasing the total amount of confusion
in the world, make gdk_rgb_to_string() and gdk_rgb_parse() follow
this syntax rather than using floats for r, g, and b.

https://bugzilla.gnome.org/show_bug.cgi?id=633762
gdk/gdkrgba.c
gdk/tests/gdk-color.c